﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<div class="creationContainer">
    <%using (Html.BeginForm("CreateCategory", "Community", FormMethod.Post, new { enctype = "multipart/form-data" }))
      { %>
    <table>
        <tr>
            <td>
                Title:
            </td>
            <td>
                <%=Html.TextBox("Title") %>
            </td>
        </tr>
        <tr>
            <td>
                Description:
            </td>
            <td>
                <%=Html.TextBox("Description") %>
            </td>
        </tr>
        <tr>
            <td>
                Image for category:
            </td>
            <td>
                <input type="file" name="image" title="" />
            </td>
        </tr>
        <tr>
        <td>Or enter url:</td>
        <td><input type="text" name="imageUrl" /></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="Create" />
            </td>
        </tr>
    </table>
    <%} %>
</div>
